package com.gitee.designpattern.singleton.satiety;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.designpattern.singleton.satiety
 * @Description 饿汉
 * @date 2018/8/30  下午5:49
 */
public class Singleton {
    private static Singleton singleton = new Singleton();
    private Singleton(){
    }

    public static synchronized Singleton getInstance(){
        return singleton;
    }
}
